{include file="public/head"/}
<style>
    .proclass{
        padding: 0;list-style: none;
    }
    .proclass li{
        height: 30px;line-height: 30px;
    }
    .listtop{
        height: 28px;background: #fafafa;border-bottom: #ccc 1px solid;padding: 4px 12px;box-sizing: border-box;line-height: 20px;
    }
    .addtz{
        padding: 0;
    }
    .addtz li{
        height: 34px;line-height: 34px;
    }
    .addtz li span{
        padding: 0 12px 0 12px;
    }
</style>
<div class="container-fluid"  id="main">
        <div class="row clearfix">
                <div class="col-md-12 column">
                    <div class="alert alert-dismissable alert-info">
                        <button type="button" class="close">×</button>
                        <p></p>
                    </div>
                </div>
            </div>
        <div class="ntDesktop">
    <div class="ntDesktop-head" v-cloak>{{title}}</div>
    <div class="row" style="padding-top:12px">
      <div class="col-md-8 column">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="javascript:;">{:lang('summary')}</a>
            </li>
            {if isset($type)}
                {if condition="$type neq 'add'"}
                    <li class="">
                        <a href="{:url('product/proAddNewJump',array('request'=>'intro','pro_id'=>$id))}" >{:lang("information")}</a>
                    </li>
                    <li >
                        <a href="{:url('product/proAddNewJump',array('request'=>'item','pro_id'=>$id))}">{:lang("accessory")}</a>
                    </li>
                    <li >
                        <a href="{:url('product/proAddNewJump',array('request'=>'img','pro_id'=>$id))}">{:lang("image")}</a>
                    </li>
                {/if}
            {/if}
        </ul>
      </div>
      
      <div class="col-md-4 column text-right">
            <div>
                <button class="btn btn-default" @click="fanhui"><span class="glyphicon glyphicon-chevron-left"></span>{:lang('back_to_list')}</button>
                <span style="padding:10px">&nbsp;</span>
                <a href="javascript:;" @click="subfn" class="btn btn-primary" style="padding-left:48px;padding-right:48px;margin-right:20px"> <span class="glyphicon glyphicon-floppy-disk"></span> {:lang('save')} </a>
            </div>
          </div>
    </div>
    <div class="row" style="margin-top:20px">
        <div class="col-md-12">
            <ul class="nav nav-tabs">
                <li class="active" @click="changelange('zh')">
                    <a href="#addzh" data-toggle="tab">{:lang('Chinese')}</a>
                </li>
                <li @click="changelange('en')">
                    <a href="#adden" data-toggle="tab">{:lang('English')}</a>
                </li>
                <li @click="changelange('pt')">
                    <a href="#addpu" data-toggle="tab">{:lang('Portuguese')}</a>
                </li>
            </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="addzh">
                    <div class="row" style="padding:20px 20px 0px 20px">
                            <div class="col-md-12">
                            <table class="table table-striped">
                                <tr>
                                <td>{:lang("product_name")}</td>
                                <td class="proname-input">
                                    <input type="text" v-model="dataval[0].proname" class="form-control" placeholder="{:lang('Chinese')} {:lang('name')}">
                                </td>
                                </tr>
                                <tr>
                                <td>{:lang("introduction")}</td>
                                <td class="proname-input">
                                    <input type="text" v-model="dataval[0].proint" class="form-control" placeholder="{:lang('introduction')}">
                                </td>
                                </tr>
                                <tr>
                                <td>{:lang("brand")}</td>
                                <td>
                                    <div class="input-group">
                                        <select  class="form-control" name="" id="brand" v-model="brandval" v-cloak>
                                            <option value="0">{:lang('please_select_product_brand')}</option>
                                            <option :value="item1.id" v-for="(item1,index1) in brand">{{item1.name}}</option>
                                        </select>
                                    </div>
                                </td>
                                </tr>
                                <tr>
                                <td>NCM</td>
                                <td class="proname-input">
                                    <input type="text" v-model="ncm" class="form-control" placeholder="海关编码">
                                </td>
                                </tr>
                                <tr v-cloak>
                                    <td>{:lang('product_category')}</td>
                                    <td>
                                        {{showcat}}
                                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#procat_setModal" style="float:right"><span class="fa fa-boxes"></span>{:lang("set_up_product_categories")}</button>
                                    </td>
                                </tr>
                                <tr>
                                <td>{:lang('status')}</td>
                                <td class="proname-input">
                                    <label class="checkbox-inline">
                                        <input type="radio" name="optionval0" value="3"  @click="changeradio(1)" :checked="cheradioval==1"> {:lang('normal')}
                                    </label>
                                    <label class="checkbox-inline">
                                        <input type="radio" name="optionval0" value="4"  @click="changeradio(4)" :checked="cheradioval==4"> {:lang("off_the_shelf")}
                                    </label>
                                    <label class="checkbox-inline">
                                        <input type="radio" name="optionval0" value="2" @click="changeradio(2)" :checked="cheradioval==2"> {:lang('delete')}
                                    </label>
                                </td>
                                </tr>
                                <tr>
                                    <td>是否可售</td>
                                    <td class="proname-input">
                                        <label class="checkbox-inline">
                                            <input type="radio" name="isfei_zh" value="1"  @click="changefei(1)" :checked="isfei==1"> {:lang('yes')}
                                        </label>
                                        <label class="checkbox-inline">
                                            <input type="radio" name="isfei_zh" value="0" @click="changefei(0)" :checked="isfei==0"> {:lang('no')}
                                        </label>
                                    </td>
                                </tr>

                                <!-- <tr>
                                    <td>{:lang("whether_it's_universal")}</td>
                                    <td class="proname-input">
                                        <label class="checkbox-inline">
                                            <input type="radio" name="general_zh" value="1" v-model="isgeneral"> {:lang('yes')}
                                        </label>
                                        <label class="checkbox-inline">
                                            <input type="radio" name="general_zh" value="2" v-model="isgeneral"> {:lang('no')}
                                        </label>
                                    </td>
                                </tr> -->
                            </table>
                            <div>
                                <div class="ntTitle">{:lang("variety_settings")}</div>
                                <table class="table table-striped table-hover ntTable" v-cloak>
                                    <thead>
                                        <tr>
                                            <th>{:lang("model")}</th>
                                            <th>{:lang("factory_model")}</th>
                                            <th><a href="#" data-toggle="tooltip" data-placement="top" title="每个包装的产品数量">{:lang('package')}</a></th>
                                            <th>{:lang("quantity")}/CTN</th>
                                            <th>{:lang("dimension")}/CTN</th>
                                            <th>{:lang("weight")}/CTN</th>
                                            <th>{:lang("description")}</th>
                                            <th>{:lang("barcode")}</th>
                                            <th v-for="(oldtz,index) in dataval[0].datvis[0].symbol">
                                                <a href="#" data-toggle="tooltip" data-placement="top" :title="oldtz.key">{{oldtz.key}}</a>
                                                <button type="button" class="btn btn-xs btn-default" @click="delclass(index)" ><span class="glyphicon glyphicon-remove" style="margin:0"></span></button>
                                            </th>
                                            <th>
                                                <select class="form-control addsel_zh" style="width:120px" data-toggle="tooltip" data-placement="top" title="新特征设置" v-model="seladdsttr" v-if="attris_show">
                                                    <option value="0"  style="cursor:no-drop">{:lang("please_select_a_feature")}</option>
                                                    <option :value="newattr.id" v-for="newattr in attrarr.pt" :disabled="newattr.hasadd">{{newattr.content}}</option>
                                                </select>
                                            </th>
                                            <th><button type="button" class="btn btn-default addspecial" data-toggle="tooltip" data-placement="top" title="添加特征"  @click="setTzfun(0)"  v-if="attris_show"><span class="glyphicon glyphicon-step-forward" style="margin:0"></span></button></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr v-for="(item,index) in dataval[0].datvis">
                                            <td><input type="text" @change="changeval(index,'model',$event)" v-model="dataval[0].datvis[index].model" class="form-control" placeholder=""></td>
                                            <td><input type="text" @change="changeval(index,'factory_model',$event)" v-model="dataval[0].datvis[index].factory_model" class="form-control" placeholder=""></td>
                                            <td><input type="text" @change="changeval(index,'package_qty',$event)" v-model="dataval[0].datvis[index].package_qty" class="form-control" style="width:56px;text-align:right" value="1" /></td>
                                            <td><input type="text" @change="changeval(index,'qty',$event)" v-model="dataval[0].datvis[index].qty" class="form-control" style="width:56px;text-align:right" value="10" /></td>
                                            <td><input type="text" @change="changeval(index,'ctn_size',$event)" v-model="dataval[0].datvis[index].ctn_size" class="form-control" style="width:120px;text-align:center" placeholder="LxWxH cm" value="" /></td>
                                            <td><input type="text" @change="changeval(index,'ctn_kgs',$event)" v-model="dataval[0].datvis[index].ctn_kgs" class="form-control" style="width:56px;text-align:right" placeholder="KGS" value="" /></td>
                                            <td><input type="text" v-model="dataval[0].datvis[index].ctn_note" class="form-control" placeholder="" /></td>
                                            <td>
                                                <div class="input-group">
                                                        <input type="text" @change="changeval(index,'codebar',$event)" v-model="dataval[0].datvis[index].codebar" class="form-control" placeholder="条码自动生成" disabled />
                                                    <span class="input-group-btn">
                                                        <button class="btn btn-default" type="button"><span class="glyphicon glyphicon-cloud-download"></span></button>
                                                    </span>
                                                </div><!-- /input-group -->
                                            </td>

                                            <td v-for="(oldtz,ikey) in dataval[0].datvis[index].symbol">
                                                <select  class="form-control" v-model="dataval[0].datvis[index].symbol[ikey].selval" @change="changeselval(index,ikey,$event)">
                                                        <option value="0">{:lang('please_select')}</option>
                                                    <option :value="valitem.val" v-for="valitem in dataval[0].datvis[index].symbol[ikey].value">{{valitem.name}}</option>
                                                </select>
                                            </td>
                                            <td colspan="2" >
                                                <button type="button" class="btn btn-default addvis" data-toggle="tooltip" data-placement="top" @click="addvis(0,index)" title="添加品种"><span class="glyphicon glyphicon-save" style="margin:0"></span></button>
                                                <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" @click="delvis(0,index)"  title="删除品种"><span class="glyphicon glyphicon-open" style="margin:0"></span></button>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            </div>
                    </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="adden">
                        <div class="row" style="padding:20px 20px 0px 20px">
                                <div class="col-md-12">
                                <table class="table table-striped">
                                    <tr>
                                    <td>{:lang("product_name")}</td>
                                    <td class="proname-input">
                                        <input type="text" v-model="dataval[1].proname" class="form-control" placeholder="{:lang('English')} {:lang('name')}">
                                    </td>
                                    </tr>
                                    <tr>
                                    <td>{:lang('introduction')}</td>
                                    <td class="proname-input">
                                        <input type="text" v-model="dataval[1].proint" class="form-control" placeholder="{:lang('introduction')}">
                                    </td>
                                    </tr>
                                    <tr>
                                    <td>{:lang("brand")}</td>
                                    <td>
                                        <div class="input-group">
                                            <select class="form-control" name="" id="brand" v-model="brandval" v-cloak>
                                                <option value="0">{:lang('please_select_product_brand')}</option>
                                                <option :value="item1.id" v-for="(item1,index1) in brand">{{item1.name}}</option>
                                            </select>
                                        </div>
                                    </td>
                                    </tr>
                                    <tr>
                                            <td>NCM</td>
                                            <td class="proname-input">
                                                <input type="text" v-model="ncm" class="form-control" placeholder="海关编码">
                                            </td>
                                            </tr>
                                    <tr v-cloak>
                                            <td>{:lang('product_category')}</td>
                                            <td>
                                                {{showcat}}
                                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#procat_setModal" style="float:right"><span class="fa fa-boxes"></span>{:lang("set_up_product_categories")}</button>
                                            </td>
                                        </tr>
                                    <tr>
                                    <td>{:lang('status')}</td>
                                    <td class="proname-input">
                                        <label class="checkbox-inline">
                                            <input type="radio" name="optionva11" value="3"  @click="changeradio(1)" :checked="cheradioval==1"> {:lang('normal')}
                                        </label>
                                                <label class="checkbox-inline">
                                                    <input type="radio" name="optionva11" value="4"  @click="changeradio(4)" :checked="cheradioval==4"> {:lang("off_the_shelf")}
                                                </label>
                                                <label class="checkbox-inline">
                                                    <input type="radio" name="optionva11" value="2"  @click="changeradio(2)" :checked="cheradioval==2"> {:lang('delete')}
                                                </label>
                                    </td>
                                    </tr>
                                    <tr>
                                        <td>是否非卖</td>
                                        <td class="proname-input">
                                            <label class="checkbox-inline">
                                                <input type="radio" name="isfei_en" value="1"  @click="changefei(1)" :checked="isfei==1"> {:lang('yes')}
                                            </label>
                                            <label class="checkbox-inline">
                                                <input type="radio" name="isfei_en" value="2" @click="changefei(2)" :checked="isfei==2"> {:lang('no')}
                                            </label>
                                        </td>
                                    </tr>
                                    <!-- <tr>
                                        <td>{:lang("whether_it's_universal")}</td>
                                        <td class="proname-input">
                                            <label class="checkbox-inline">
                                                <input type="radio" name="public_en" value="1"  v-model="isgeneral"> {:lang('yes')}
                                            </label>
                                            <label class="checkbox-inline">
                                                <input type="radio" name="public_en" value="2"  v-model="isgeneral"> {:lang('no')}
                                            </label>
                                        </td>
                                    </tr> -->

                                </table>
                                <div>
                                    <div class="ntTitle">{:lang("variety_settings")}</div>
                                    <table class="table table-striped table-hover ntTable" v-cloak>
                                        <thead>
                                            <tr>
                                                <th>{:lang("model")}</th>
                                                <th>{:lang("factory_model")}</th>
                                                <th><a href="#" data-toggle="tooltip" data-placement="top" title="每个包装的产品数量">{:lang('package')}</a></th>
                                                <th>{:lang("quantity")}/CTN</th>
                                                <th>{:lang("dimension")}/CTN</th>
                                                <th>{:lang("weight")}/CTN</th>
                                                <th>{:lang("description")}</th>
                                                <th>{:lang("barcode")}</th>
                                                <th v-for="(oldtz,index) in dataval[1].datvis[0].symbol">
                                                        <a href="#" data-toggle="tooltip" data-placement="top" :title="oldtz.key">{{oldtz.key}}</a>
                                                        <button type="button" class="btn btn-xs btn-default" @click="delclass(index)" ><span class="glyphicon glyphicon-remove" style="margin:0"></span></button>
                                                    </th>
                                                <th>
                                                    <select class="form-control" style="width:100px" data-toggle="tooltip" data-placement="top" title="新特征设置"  v-model="seladdsttr"  v-if="attris_show">
                                                            <option value="0">{:lang("please_select_a_feature")}</option>
                                                            <option :value="newattr.id" v-for="newattr in attrarr.pt" :disabled="newattr.hasadd">{{newattr.content}}</option>
                                                    </select>
                                                </th>
                                                <th><button type="button" class="btn btn-default addspecial" data-toggle="tooltip" data-placement="top" title="添加特征"  @click="setTzfun(1)"  v-if="attris_show"><span class="glyphicon glyphicon-step-forward" style="margin:0"></span></button></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr v-for="(item,index) in dataval[1].datvis">
                                                <td><input type="text" @change="changeval(index,'model',$event)" v-model="dataval[1].datvis[index].model" class="form-control" placeholder="" value="MS-10S"></td>
                                                <td><input type="text" @change="changeval(index,'factory_model',$event)" v-model="dataval[1].datvis[index].factory_model" class="form-control" placeholder=""></td>
                                                <td><input type="text" @change="changeval(index,'package_qty',$event)" v-model="dataval[1].datvis[index].package_qty" class="form-control" style="width:56px;text-align:right" value="1" /></td>
                                                <td><input type="text" @change="changeval(index,'qty',$event)" v-model="dataval[1].datvis[index].qty" class="form-control" style="width:56px;text-align:right" value="10" /></td>
                                                <td><input type="text" @change="changeval(index,'ctn_size',$event)" v-model="dataval[1].datvis[index].ctn_size" class="form-control" style="width:120px;text-align:center" placeholder="LxWxH cm" value="" /></td>
                                                <td><input type="text" @change="changeval(index,'ctn_kgs',$event)" v-model="dataval[1].datvis[index].ctn_kgs" class="form-control" style="width:56px;text-align:right" placeholder="KGS" value="" /></td>
                                                <td><input type="text" v-model="dataval[1].datvis[index].ctn_note" class="form-control" placeholder="" /></td>
                                                <td>
                                                    <div class="input-group">
                                                            <input type="text" @change="changeval(index,'codebar',$event)" v-model="dataval[1].datvis[index].codebar" class="form-control" placeholder="条码自动生成" />
                                                        <span class="input-group-btn">
                                                            <button class="btn btn-default" type="button"><span class="glyphicon glyphicon-cloud-download"></span></button>
                                                        </span>
                                                    </div><!-- /input-group -->
                                                </td>
                                                <td v-for="(oldtz,ikey) in dataval[1].datvis[index].symbol">
                                                    <select name="" id=""  class="form-control" v-model="dataval[1].datvis[index].symbol[ikey].selval"  @change="changeselval(index,ikey,$event)">
                                                            <option value="0">{:lang('please_select')}</option>
                                                        <option :value="valitem.val" v-for="valitem  in dataval[1].datvis[index].symbol[ikey].value">{{valitem.name}}</option>
                                                    </select>
                                                </td>
                                                <td colspan="2">
                                                    <button type="button" class="btn btn-default addvis" data-toggle="tooltip" data-placement="top" @click="addvis(1,index)" title="添加品种"><span class="glyphicon glyphicon-save" style="margin:0"></span></button>
                                                    <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" @click="delvis(1,index)"  title="删除品种"><span class="glyphicon glyphicon-open" style="margin:0"></span></button>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                </div>
                        </div>
                </div>
                <div role="tabpanel" class="tab-pane" id="addpu">
                        <div class="row" style="padding:20px 20px 0px 20px">
                                <div class="col-md-12">
                                <table class="table table-striped" v-cloak>
                                    <tr>
                                    <td>{:lang("product_name")}</td>
                                    <td class="proname-input">
                                        <input type="text" v-model="dataval[2].proname" class="form-control" placeholder="{:lang('Portuguese')} {:lang('name')}">
                                    </td>
                                    </tr>
                                    <tr>
                                    <td>{:lang("introduction")}</td>
                                    <td class="proname-input">
                                        <input type="text" v-model="dataval[2].proint" class="form-control" placeholder="{:lang('introduction')}">
                                    </td>
                                    </tr>
                                    <tr>
                                    <td>{:lang("brand")}</td>
                                    <td>
                                        <div class="input-group">
                                            <select class="form-control" name="" id="brand" v-model="brandval">
                                                <option value="0">{:lang('please_select_product_brand')}</option>
                                                <option :value="item1.id" v-for="(item1,index1) in brand">{{item1.name}}</option>
                                            </select>
                                        </div>
                                    </td>
                                    </tr>
                                    <tr>
                                            <td>NCM</td>
                                            <td class="proname-input">
                                                <input type="text" v-model="ncm" class="form-control" placeholder="海关编码">
                                            </td>
                                            </tr>
                                    <tr>
                                    <td>{:lang('product_category')}</td>
                                    <td>
                                        {{showcat}}
                                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#procat_setModal" style="float:right"><span class="fa fa-boxes"></span>{:lang("set_up_product_categories")}</button>
                                    </td>
                                </tr>
                                    <tr>
                                    <td>{:lang('status')}</td>
                                    <td class="proname-input">
                                        <label class="checkbox-inline">
                                            <input type="radio" name="optionva13" value="3"  @click="changeradio(1)" :checked="cheradioval==1 "> {:lang('normal')}
                                        </label>
                                        <label class="checkbox-inline">
                                            <input type="radio" name="optionval3" value="4"  @click="changeradio(4)":checked="cheradioval==4"> {:lang("off_the_shelf")}
                                        </label>
                                        <label class="checkbox-inline">
                                            <input type="radio" name="optionval3" value="2" @click="changeradio(2)" :checked="cheradioval==2"> {:lang('delete')}
                                        </label>
                                    </td>
                                    </tr>
                                    <tr>
                                        <td>是否非卖</td>
                                        <td class="proname-input">
                                            <label class="checkbox-inline">
                                                <input type="radio" name="isfei_pt" value="1"  @click="changefei(1)" :checked="isfei==1"> {:lang('yes')}
                                            </label>
                                            <label class="checkbox-inline">
                                                <input type="radio" name="isfei_pt" value="2" @click="changefei(2)" :checked="isfei==2"> {:lang('no')}
                                            </label>
                                        </td>
                                    </tr>
                                    <!-- <tr>
                                        <td>{:lang("whether_it's_universal")}</td>
                                        <td class="proname-input">
                                            <label class="checkbox-inline">
                                                <input type="radio" name="public_pt" value="1"  v-model="isgeneral"> {:lang('yes')}
                                            </label>
                                            <label class="checkbox-inline">
                                                <input type="radio" name="public_pt" value="2"  v-model="isgeneral"> {:lang('no')}
                                            </label>
                                        </td>
                                    </tr> -->
                                </table>
                                <div>
                                    <div class="ntTitle">{:lang("variety_settings")}</div>
                                    <table class="table table-striped table-hover ntTable" v-cloak>
                                        <thead>
                                            <tr>
                                                <th>{:lang("model")}</th>
                                                <th>{:lang("factory_model")}</th>
                                                <th><a href="#" data-toggle="tooltip" data-placement="top" title="每个包装的产品数量">{:lang('package')}</a></th>
                                                <th>{:lang("quantity")}/CTN</th>
                                                <th>{:lang("dimension")}/CTN</th>
                                                <th>{:lang("weight")}/CTN</th>
                                                <th>{:lang("description")}</th>
                                                <th>{:lang("barcode")}</th>

                                                <th v-for="(oldtz,index) in dataval[2].datvis[0].symbol">
                                                        <a href="#" data-toggle="tooltip" data-placement="top" :title="oldtz.key">{{oldtz.key}}</a>
                                                        <button type="button" class="btn btn-xs btn-default" @click="delclass(index)" ><span class="glyphicon glyphicon-remove" style="margin:0"></span></button>
                                                    </th>
                                                <th>
                                                    <select class="form-control" style="width:100px" data-toggle="tooltip" data-placement="top" title="新特征设置" v-model="seladdsttr"  v-if="attris_show">
                                                            <option value="0">{:lang("please_select_a_feature")}</option>
                                                            <option :value="newattr.id" v-for="newattr in attrarr.pt" :disabled="newattr.hasadd">{{newattr.content}}</option>
                                                    </select>
                                                </th>
                                                <th><button type="button" class="btn btn-default addspecial" data-toggle="tooltip" data-placement="top" title="添加特征"  @click="setTzfun(2)"  v-if="attris_show"><span class="glyphicon glyphicon-step-forward" style="margin:0"></span></button></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr v-for="(item,index) in dataval[2].datvis">
                                                <td><input type="text" @change="changeval(index,'model',$event)" v-model="dataval[2].datvis[index].model" class="form-control" placeholder="" value="MS-10S"></td>
                                                <td><input type="text" @change="changeval(index,'factory_model',$event)" v-model="dataval[2].datvis[index].factory_model" class="form-control" placeholder=""></td>
                                                <td><input type="text" @change="changeval(index,'package_qty',$event)" v-model="dataval[2].datvis[index].package_qty" class="form-control" style="width:56px;text-align:right" value="1" /></td>
                                                <td><input type="text" @change="changeval(index,'qty',$event)" v-model="dataval[2].datvis[index].qty" class="form-control" style="width:56px;text-align:right" value="10" /></td>
                                                <td><input type="text" @change="changeval(index,'ctn_size',$event)" v-model="dataval[2].datvis[index].ctn_size" class="form-control" style="width:120px;text-align:center" placeholder="LxWxH cm" value="" /></td>
                                                <td><input type="text" @change="changeval(index,'ctn_kgs',$event)" v-model="dataval[2].datvis[index].ctn_kgs" class="form-control" style="width:56px;text-align:right" placeholder="KGS" value="" /></td>
                                                <td><input type="text" v-model="dataval[2].datvis[index].ctn_note" class="form-control" placeholder="" /></td>
                                                <td>
                                                    <div class="input-group">
                                                            <input type="text" @change="changeval(index,'codebar',$event)" v-model="dataval[2].datvis[index].codebar" class="form-control" placeholder="条码自动生成" />
                                                        <span class="input-group-btn">
                                                            <button class="btn btn-default" type="button"><span class="glyphicon glyphicon-cloud-download"></span></button>
                                                        </span>
                                                    </div><!-- /input-group -->
                                                </td>
                                                <td v-for="(oldtz,ikey) in dataval[2].datvis[index].symbol">
                                                    <select name="" id=""  class="form-control" v-model="dataval[2].datvis[index].symbol[ikey].selval" @change="changeselval(index,ikey,$event)">
                                                        <option value="0">{:lang('please_select')}</option>
                                                        <option :value="valitem.val" v-for="valitem in dataval[2].datvis[index].symbol[ikey].value">{{valitem.name}}</option>
                                                    </select>
                                                </td>
                                                <td colspan="2">
                                                    <button type="button" class="btn btn-default addvis" data-toggle="tooltip" data-placement="top" @click="addvis(2,index)" title="添加品种"><span class="glyphicon glyphicon-save" style="margin:0"></span></button>
                                                    <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" @click="delvis(2,index)"  title="删除品种"><span class="glyphicon glyphicon-open" style="margin:0"></span></button>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                </div>
                        </div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" value="{if isset($id)}{$id}{/if}" id="did">
    <input type="hidden" value="{$type}" id="type">

    <!-- 产品分类弹框 -->
    <div class="modal fade" id="procat_setModal" tabindex="-1" role="dialog" aria-labelledby="ntModalLabel" aria-hidden="true"  data-backdrop="static" data-keyboard="false">
            <div class="modal-dialog modal-lg">
                <div class="modal-content" style="width:1000px">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="ntModalLabel">产品分类设置</h4>
                    </div>
                    <div class="modal-body">
                        <form class="row clearfix formbox">
                            <div class="col-md-12 column">
                                <div class="cat_panel pre-scrollable" style="overflow-y:auto;overflow-x:auto;width:100%;height:300px;">
                                    <table class="table table-striped ntTable" v-cloak>
                                        <thead>
                                            <tr>
                                                <td colspan="2">{:lang('product_category')}<span class="required"></span></td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr v-for="(item,index) in productCate">
                                                <td>
                                                    <label style="width: 100%;font-weight: normal;">
                                                    <span><input type="checkbox" name="setclass" :checked="procate.indexOf(item.id)!=-1" :value="item.id+'/'+item.content" ></span>
                                                    <span :style="{paddingLeft:24*item.level+'px',display:'inline-block',marginLeft:'100px'}">{{item.content}}</span>
                                                    </label>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        
                        <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>{:lang('cancel')}</button>
                        <button type="button" class="btn btn-primary" @click="enter" style="padding-left:24px;padding-right:24px"><span class="glyphicon glyphicon-ok"></span>{:lang('confirm')}</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal -->
    </div>


  </div>
</div>

<script>
    $(function () { $("[data-toggle='tooltip']").tooltip(); });
</script>
<script src="/static/Admin/js/addnew.js"></script>


{include file="public/foot"/}